﻿<ribbon:RibbonWindow x:Class="Hisaab.Windows.Client.Shell"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
        xmlns:prism="clr-namespace:Microsoft.Practices.Prism.Regions;assembly=Microsoft.Practices.Prism"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Hisaab - managing your life" Height="456" Width="723" >
    <ribbon:RibbonWindow.Resources>
        <LinearGradientBrush x:Key="WindowBackgroundBrush">
            <GradientStop Color="#FFE7E9EB" Offset="0" />
            <GradientStop Color="#FFC6CACF" Offset="1" />
        </LinearGradientBrush>
    </ribbon:RibbonWindow.Resources>
    <ribbon:RibbonWindow.Background>
        <StaticResource ResourceKey="WindowBackgroundBrush" />
    </ribbon:RibbonWindow.Background>
    <Grid>
        <!-- Layout Root -->
        <Grid x:Name="LayoutRoot">
            <Grid.RowDefinitions>
                <RowDefinition x:Name="RibbonRow" Height="Auto"/>
                <RowDefinition x:Name="ClientRow" Height="*"/>
                <RowDefinition x:Name="StatusBarRow" Height="28"/>
            </Grid.RowDefinitions>
            <!-- Note that the application Ribbon is defined as a Prism region, so that modules can
                load their own tabs into the Ribbon. The Utility folder contains a RibbonRegionAdapter
                class that enables the Ribbon to act as a Prism region. -->
            <!-- Application Ribbon -->
            <ribbon:Ribbon x:Name="ApplicationRibbon"
                   Grid.Row="0"
                   Background="Transparent"
                   prism:RegionManager.RegionName="RibbonRegion">
                <!-- Ribbon ApplicationMenu (defined here) -->
                <ribbon:Ribbon.ApplicationMenu>
                    <ribbon:RibbonApplicationMenu>
                        <ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon"
                                                         x:Name="MenuItem1" />
                    </ribbon:RibbonApplicationMenu>
                </ribbon:Ribbon.ApplicationMenu>
                <!-- Ribbon QuickAccessToolbar  (defined here) -->
                <ribbon:Ribbon.QuickAccessToolBar>
                    <ribbon:RibbonQuickAccessToolBar>
                        <ribbon:RibbonButton Command="{Binding NewCollection}" ToolTip="Create a new file (Ctrl+N)" />
                        <ribbon:RibbonButton Command="{Binding OpenCollection}" ToolTip="Open an existing file (Ctrl+O)" />
                        <ribbon:RibbonButton Command="{Binding SaveCollection}" ToolTip="Save the current file (Ctrl+S)" />
                        <ribbon:RibbonButton Command="{Binding PrintNote}" ToolTip="Print the current file (Ctrl+P)" />
                    </ribbon:RibbonQuickAccessToolBar>
                </ribbon:Ribbon.QuickAccessToolBar>
                <!-- Home Tab (defined here) -->
                <ribbon:RibbonTab x:Name="HomeTab"  Header="Home">
                    <ribbon:RibbonGroup Header="Group S1">
                        <ribbon:RibbonButton Label="Button S1" />
                        <ribbon:RibbonButton Label="Button S2" />
                        <ribbon:RibbonButton Label="Button S3" />
                        <ribbon:RibbonButton Label="Button S4" />
                    </ribbon:RibbonGroup>
                </ribbon:RibbonTab>
            </ribbon:Ribbon>
            <!-- Client Area -->
            <ad:DockingManager Grid.Column="1" Grid.Row="1" >
                <ad:DocumentPane prism:RegionManager.RegionName="TabRegion" Name="TabRegion">
                    <ad:DockableContent Title="Home">
                    </ad:DockableContent>
                </ad:DocumentPane>
            </ad:DockingManager>
            <!-- Status Bar -->
            <StatusBar Grid.Row="2" Height="28" BorderBrush="#FFCCD9E7">
                <StatusBar.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFFDFEFE" Offset="0.264" />
                        <GradientStop Color="#FFC1D2EE" Offset="1" />
                        <GradientStop Color="#FFEDF3F9" Offset="0.289" />
                    </LinearGradientBrush>
                </StatusBar.Background>
                <StatusBar.Items>
                    <StatusBarItem  Content="Ready"/>
                </StatusBar.Items>
            </StatusBar>
        </Grid>
    </Grid>
</ribbon:RibbonWindow>